#include "rewine/Logger.hpp"

#undef _WIN32
#include "spdlog/sinks/stdout_color_sinks.h"
#define _WIN32

namespace rewine
{

Logger::Logger() {
    m_Logger = spdlog::stdout_color_mt("stdout");
    m_Logger->set_level(spdlog::level::debug);
    m_Logger->set_pattern("[%H:%M:%S %z] [%n] [%^---%L---%$] [thread %t] %v");
}

Logger::~Logger() {
    m_Logger->flush();
}

} // namespace rewine
